set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/3rdParty )
find_package(openssl REQUIRED)
find_package(crypto REQUIRED)

include_directories( ${PROJECT_SOURCE_DIR}/PopupLibOSAL/include )
include_directories( ${PROJECT_SOURCE_DIR}/PopupLibrary/include )

file( GLOB sources *.h *.c *.hpp *.cpp )
add_executable( PopupClient ${sources} )

target_link_libraries( PopupClient popup osal ${openssl_LIBRARY} ${crypto_LIBRARY} dl pthread )

install( TARGETS PopupClient DESTINATION ${POPUP_INSTALL_DIR}/bin )
